package com.accp.jboa.action;

import com.accp.jboa.biz.Countbiz;
import com.accp.jboa.vo.CountAndReimburseAndDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/count")
public class CountAction {

    @Autowired(required = false)
    private Countbiz countbiz;

    @RequestMapping("/querycount")
    public List<CountAndReimburseAndDetail> count() {
        return countbiz.queryCount();
    }
}
